home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 May / Disc 1 / PCU0503CD1.iso / resource / network / files / lannetsc.exe / {app} / Config / xsl / missing_patches.xsl < prev    next >
Encoding:
Text File  |  2003-03-01  |  8.2 KB  |  273 lines

  1. <xsl:template match="/">
  2.  
  3.   <body>
  4.    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">
  5.    Scan target :
  6.    <b><xsl:value-of select="hosts/@scan_target"/></b> [
  7.  
  8.    <b><xsl:value-of select="count(hosts/host)"/></b>
  9.    computers found ]
  10.    </font>
  11.    <hr/>
  12.  
  13.    <font face="Verdana, Arial, Helvetica, sans-serif" size="3" color="Black">
  14.    <b>Missing patches report</b><br/></font>
  15.    <font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="Black">
  16.    This report includes : <br/>
  17.    <ul>
  18.     <li>missing service packs</li>
  19.     <li>missing patches</li>
  20.    </ul>
  21.    </font>
  22.    <br/>
  23.  
  24.    <xsl:if test="$show_table=1">
  25.  
  26.     <!--table begin-->
  27.     <table border="0">
  28.       <tr>
  29.         <th align="middle" bgColor="#3366cc"><font color="#ffffff" size="2">IP Address</font></th>
  30.         <th align="middle" bgColor="#3366cc"><font color="#ffffff" size="2">Hostname</font></th>
  31.         <th align="middle" bgColor="#3366cc"><font color="#ffffff" size="2">Username</font></th>
  32.         <th align="middle" bgColor="#3366cc"><font color="#ffffff" size="2">Operating System</font></th>
  33.       </tr>
  34.  
  35.       <!--each host-->
  36.       <xsl:for-each select="hosts/host">
  37.       <xsl:sort data-type="text" select="os"/>
  38.  
  39.       <xsl:if test="1">
  40.       <xsl:if test="count(alerts/missing_hotfixes/product/*) > 0">
  41.  
  42.       <tr>
  43.         <td bgColor="#f0f0f0"><a href="#{ip}"><xsl:value-of select="ip"/></a></td>
  44.  
  45.         <td bgColor="#f0f0f0"><xsl:value-of select="hostname"/></td>
  46.         <td bgColor="#f0f0f0"><xsl:value-of select="username"/></td>
  47.         <td bgColor="#f0f0f0">
  48.  
  49.          <xsl:if test="$show_images=1">
  50.           <img src="{os_image_path}"/>
  51.           <xsl:text disable-output-escaping="yes"> &nbsp;</xsl:text>
  52.          </xsl:if>
  53.  
  54.         <xsl:value-of select="os"/>
  55.  
  56.         </td>
  57.       </tr>
  58.       </xsl:if>
  59.       </xsl:if>
  60.  
  61.       <!--end each host-->
  62.       </xsl:for-each>
  63.  
  64.     </table>
  65.     <!--table end-->
  66.    </xsl:if>
  67.  
  68.       <!--start details-->
  69.       <xsl:if test="$show_details=1">
  70.       <br/>
  71.       <xsl:for-each select="hosts/host">
  72.       <xsl:sort data-type="text" select="os"/>
  73.  
  74.       <!--conditia 1=true, 0=false -->
  75.       <xsl:if test="1">
  76.       <xsl:if test="count(alerts/missing_hotfixes/product/*) > 0">
  77.  
  78.         <A name="{ip}"/>
  79.  
  80.         <table border="1" cellspacing="0" cellpadding="0"
  81.         style="border-collapse:collapse; mso-border-alt:solid windowtext .9pt;mso-padding-alt:0in 1.4pt 0in 1.4pt">
  82.         <tr><td width="738" valign="top"
  83.         style="width:7.10in;border:none windowtext .9pt;background:#3366cc;padding:0in 5.4pt 0in 4.4pt">
  84.  
  85.         <font color="white">
  86.  
  87.            <b><xsl:value-of select="ip"/>
  88.            [ <xsl:value-of select="hostname"/> ]
  89.  
  90.            <font color="yellow">
  91.            <xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
  92.            <xsl:value-of select="os"/>
  93.  
  94.         <!-- display service pack (if available) -->
  95.         <xsl:choose>
  96.          <xsl:when test = "servpack > 0">
  97.           <xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
  98.           Service Pack <xsl:value-of select="servpack"/>
  99.          </xsl:when>
  100.          <xsl:otherwise>
  101.          </xsl:otherwise>
  102.         </xsl:choose>
  103.  
  104.         </font>
  105.         </b>
  106.  
  107.         </font>
  108.  
  109.         </td></tr>
  110.  
  111.         <td>
  112.  
  113.         <!--start details-->
  114.  
  115.         <!--alerts titlu-->
  116.         <xsl:if test="$show_alerts = 1">
  117.         <xsl:if test="count(alerts/*) > 0">
  118.         <A name="{ip}alerts"/>
  119.         <xsl:for-each select="alerts">
  120.  
  121.         <!--Missing hotfixes-->
  122.         <xsl:for-each select="missing_hotfixes/product">
  123.         <xsl:if test="position()=1">
  124.         <br/>
  125.  
  126.         <xsl:text disable-output-escaping="yes"> &nbsp;</xsl:text>
  127.         <xsl:text disable-output-escaping="yes"> &nbsp;</xsl:text>
  128.  
  129.           <xsl:if test="$show_images=1">
  130.            <img src="images/missing_hotfix.bmp"/>
  131.            <xsl:text disable-output-escaping="yes"> &nbsp;</xsl:text>
  132.           </xsl:if>
  133.  
  134.          <font color="navy"><b>Missing patches</b><br/></font>
  135.         </xsl:if>
  136.  
  137.          <table border="0" cellspacing="0" cellpadding="0"
  138.          style="border-collapse:collapse; mso-border-alt:solid windowtext .9pt;mso-padding-alt:3in 1.4pt 0in 1.4pt">
  139.          <tr><td width="20"></td>
  140.  
  141.          <td width="200" valign="top"
  142.          style="width: 6.70in ;border:none windowtext .9pt;background:#6f6f6f;padding:0in 5.4pt 0in 4.4pt">
  143.  
  144.          <font color = "white">
  145.          <b>
  146.          <xsl:value-of select="@name"/><br/>
  147.          </b>
  148.          </font>
  149.          </td>
  150.          </tr>
  151.  
  152.  
  153.          <tr><td></td>
  154.          <td width="738" valign="top"
  155.          style="width: 6.70in;border:none windowtext .9pt;background:#f5f5f5; padding:0in 5.4pt 0in 4.4pt">
  156.  
  157.          <!--latestSPavailable-->
  158.          <xsl:if test="@latestSPavailable != ''">
  159.           <b>The latest service pack for this product is not installed !</b><br/>
  160.           Latest SP available : <xsl:value-of select="@latestSPavailable"/><br/>
  161.           <a href="{@latestSPurl}"><xsl:value-of select="@latestSPurl"/></a><br/><br/>
  162.          </xsl:if>
  163.          <!--latestSPavailable-->
  164.  
  165.  
  166.          <!--hotfix-->
  167.          <xsl:for-each select="hotfix">
  168.          
  169.           <xsl:if test="not(starts-with(name, 'Note on'))">
  170.            <b><xsl:value-of select="name"/></b> - <xsl:value-of select="qname"/><br/>
  171.            <font color="navy"><xsl:value-of select="desc"/><br/></font>
  172.            <font color="gray"><xsl:value-of select="reason"/></font><br/>
  173.            <a href="{url}"><xsl:value-of select="url"/></a><br/><br/>
  174.          </xsl:if>
  175.           
  176.          </xsl:for-each>
  177.          <!--hotfix-->
  178.  
  179.  
  180.  
  181.          </td>
  182.          </tr>
  183.          </table>
  184.  
  185.          <br/>
  186.  
  187.         </xsl:for-each>
  188.         <!--end missing hotfixes-->
  189.  
  190.  
  191.         <!--Notes on missing patches-->
  192.         <xsl:for-each select="missing_hotfixes/product">
  193.         <xsl:if test="position()=1">
  194.         <br/>
  195.  
  196.         <xsl:text disable-output-escaping="yes"> &nbsp;</xsl:text>
  197.         <xsl:text disable-output-escaping="yes"> &nbsp;</xsl:text>
  198.  
  199.           <xsl:if test="$show_images=1">
  200.            <img src="images/PatchNote.bmp"/>
  201.            <xsl:text disable-output-escaping="yes"> &nbsp;</xsl:text>
  202.           </xsl:if>
  203.  
  204.          <font color="navy"><b>Patches which cannot be detected</b><br/></font>
  205.         </xsl:if>
  206.  
  207.          <table border="0" cellspacing="0" cellpadding="0"
  208.          style="border-collapse:collapse; mso-border-alt:solid windowtext .9pt;mso-padding-alt:3in 1.4pt 0in 1.4pt">
  209.          <tr><td width="20"></td>
  210.  
  211.          <td width="200" valign="top"
  212.          style="width: 6.70in ;border:none windowtext .9pt;background:#6f6f6f;padding:0in 5.4pt 0in 4.4pt">
  213.  
  214.          <font color = "white">
  215.          <b>
  216.          <xsl:value-of select="@name"/><br/>
  217.          </b>
  218.          </font>
  219.          </td>
  220.          </tr>
  221.  
  222.          <tr><td></td>
  223.          <td width="738" valign="top"
  224.          style="width: 6.70in;border:none windowtext .9pt;background:#f5f5f5; padding:0in 5.4pt 0in 4.4pt">
  225.  
  226.          <!--hotfix-->
  227.          <xsl:for-each select="hotfix">
  228.          
  229.           <xsl:if test="starts-with(name, 'Note on')">
  230.            <b><xsl:value-of select="name"/></b> - <xsl:value-of select="qname"/><br/>
  231.            <font color="navy"><xsl:value-of select="desc"/><br/></font>
  232.            <font color="gray"><xsl:value-of select="reason"/></font><br/>
  233.            <a href="{url}"><xsl:value-of select="url"/></a><br/><br/>
  234.          </xsl:if>
  235.                    
  236.          </xsl:for-each>
  237.          <!--hotfix-->
  238.  
  239.  
  240.  
  241.          </td>
  242.          </tr>
  243.          </table>
  244.  
  245.          <br/>
  246.  
  247.         </xsl:for-each>
  248.         <!--Notes on missing patches-->
  249.  
  250.         </xsl:for-each>
  251.         </xsl:if>
  252.         </xsl:if>
  253.  
  254.  
  255.         <!--end computer details-->
  256.         </td>
  257.         </table>
  258.  
  259.       <br/>
  260.       </xsl:if>
  261.       </xsl:if>
  262.  
  263.       <!--end each details-->
  264.       </xsl:for-each>
  265.       </xsl:if>
  266.  
  267.    <xsl:element name="HR"/>
  268.    <font face="Verdana, Arial, Helvetica, sans-serif" size="2"><xsl:value-of select="hosts/@created_on"/></font><br/>
  269.   </body>
  270. </xsl:template>
  271. </xsl:stylesheet>
  272.  
  273.